find_package(protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)
find_package(Threads)

list (APPEND test_includes ${kvClient_INCLUDE_DIR} ${fiu_include_dirs})

list(APPEND test_libs
    kvproto
    kv_client
    protobuf::libprotobuf
    gRPC::grpc
    gRPC::grpc++
    gRPC::grpc++_reflection
    ${Poco_Net_LIBRARY}
    ${Poco_JSON_LIBRARY}
    gtest
    gtest_main
    fiu)

# add_executable(kv_client_ut io_or_region_error_get_test.cc region_split_test.cc lock_resolve_test.cc coprocessor_test.cc)
# target_include_directories(kv_client_ut PUBLIC ${test_includes})
# target_link_libraries(kv_client_ut ${test_libs} )

# include(CTest)
# add_test(kv_client_test kv_client_ut)

# add_subdirectory(bank_test)

# add_subdirectory(raw_client_test)

add_subdirectory(real_tikv_test)
